﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Quickly.Certs.Core
{
    public interface ICertificateDataStore
    {
        public Task<long> SaveAsync(CertificateData data, CancellationToken cancellationToken);

        public Task<CertificateData?> LoadAsync(long id, CancellationToken cancellationToken);

        public Task<List<CertificateData>> LoadAsync(List<long> ids, CancellationToken cancellationToken);

        Task DeleteAsync(List<long> ids, CancellationToken cancellationToken);
    }
}
